﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class User_EmailMarketingUser : System.Web.UI.Page
{
    UsersRepository URepo = new UsersRepository();
    protected void Page_Load(object sender, EventArgs e)
    {
        HttpCookie _user = Request.Cookies["userinfo"];
        if (Request.Cookies["userinfo"] != null)
        {
            if (_user["username"] != null)
            {
                int UserId = URepo.GetUserIdByName(_user["username"]);
            }
        }
    }
}